{% extends "layout/layout.html.twig" %}

{%block title%}
Kontakt
{%endblock%}

{%block body%}
<div class="container" style="width: 500px;">
                
<p class="cufon">Kontakt</p><br >

{{ result|raw }}

<div id="form"> 
<form action="#msg" method="POST">
    <input type="text" class="input form_kto" name="kto" value="{%if post.kto %}{{ post.kto }} {%else%}Imię i nazwisko{%endif%}" onClick="if(this.value=='Imię i nazwisko') this.value='';" onBlur="if(this.value=='') this.value='Imię i nazwisko';"><br>
    <input type="text" class="input form_tel" name="tel" value="{%if post.tel %}{{ post.tel }} {%else%}Numer telefonu{%endif%}" onClick="if(this.value=='Numer telefonu') this.value='';" onBlur="if(this.value=='') this.value='Numer telefonu';"><br>
    <input type="text" class="input form_mail" name="mail" value="{%if post.email %}{{ post.email }}{%else%}Adres e-mail{%endif%}" onClick="if(this.value=='Adres e-mail') this.value='';" onBlur="if(this.value=='') this.value='Adres e-mail';"><br>
    <textarea name="tresc" class="form_tresc" onClick="if(this.value=='Treść wiadomości') this.value='';" onBlur="if(this.value=='') this.value='Treść wiadomości';" cols="20" rows="13" >{%if post.tresc %}{{ post.tresc}}{%else%}Treść wiadomości{%endif%}</textarea>
    <br>
                                    <p style="margin:0px; margin-bottom: 10px; font-size: 12px;">

Proszę podać wynik:<br>
{% set liczba1 = random(5)  %}
{% set liczba2 = random(5)  %}
{{ liczba1 }}  dodać {{ liczba2 }} = 
<input type="text" name="antyspam" class="input form_antyspam" style="width: 102px;">
<input type="hidden" name="liczba1" value="{{ liczba1 }} ">
<input type="hidden" name="liczba2" value="{{ liczba2 }} ">
<br>
<input type="hidden" name="wyslij">
<input type="image" name="wyslij" src="{{ URL }}views/images/wyslij.png" style="display:inline-block; margin-top: 5px;">
</p>
</form>
</div>
<div id="mapa">
<iframe width="280" height="425" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.pl/maps?f=q&amp;source=s_q&amp;hl=pl&amp;geocode=&amp;q=%C5%9Awi%C4%99toja%C5%84ska+118+lok.+9,+81-388+Gdynia&amp;aq=&amp;sll=51.957807,19.138184&amp;sspn=12.037642,31.904297&amp;ie=UTF8&amp;hq=&amp;hnear=%C5%9Awi%C4%99toja%C5%84ska+118,+Gdynia,+pomorskie&amp;t=m&amp;ll=54.515452,18.53548&amp;spn=0.021175,0.023947&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="https://maps.google.pl/maps?f=q&amp;source=embed&amp;hl=pl&amp;geocode=&amp;q=%C5%9Awi%C4%99toja%C5%84ska+118+lok.+9,+81-388+Gdynia&amp;aq=&amp;sll=51.957807,19.138184&amp;sspn=12.037642,31.904297&amp;ie=UTF8&amp;hq=&amp;hnear=%C5%9Awi%C4%99toja%C5%84ska+118,+Gdynia,+pomorskie&amp;t=m&amp;ll=54.515452,18.53548&amp;spn=0.021175,0.023947&amp;z=14&amp;iwloc=A" style="color:#0000FF;text-align:left">Wyświetl większą mapę</a></small>
</div>
<div style="clear: both;">
<br>

{{ news.tresc|raw }}
</div>
</div>
</div>

{%endblock%}